//自提点管理
import request from '@/utils/request'
const PickupLocationManagement = {
  //分页条件查询
  queryPageByCondition (data) {
    return request({
      url: '/shop/pickupPoint/queryPageByCondition',
      method: 'post',
      data
    })
  },
  //条件查询
  queryByCondition (data) {
    return request({
      url: '/shop/pickupPoint/queryByCondition',
      method: 'post',
      data
    })
  },
  //新增
  add (data) {
    return request({
      url: '/shop/pickupPoint/add',
      method: 'post',
      data
    })
  },
  //编辑
  edit (data) {
    return request({
      url: '/shop/pickupPoint/edit',
      method: 'put',
      data
    })
  },
  //删除
  del (id) {
    return request({
      url: `/shop/pickupPoint/del?id=${id}`,
      method: 'delete'
    })
  },
  //批量删除
  delList (idList) {
    return request({
      url: `/shop/pickupPoint/delList?idList=${idList}`,
      method: 'delete',
    })
  }
}
export default PickupLocationManagement




